package com.itheima.factory;

import com.itheima.controller.IStudentController;
import com.itheima.controller.impl.StudentControllerImpl;
import com.itheima.dao.IStudentDao;
import com.itheima.dao.impl.StudentDaoImpl;
import com.itheima.service.IStudentService;
import com.itheima.service.impl.StudentServiceImpl;

/*
生产对象
 */
public class Factory {
    /*
    生产Controller对象
     */
    public static IStudentController getStudentController(){
        return  new StudentControllerImpl();
    }

    /*
   生产Service对象
    */
    public static IStudentService getStudentService(){
        return  new StudentServiceImpl();
    }

    /*
   生产Dao对象
    */
    public static IStudentDao getStudentDao(){
        return  new StudentDaoImpl();
    }

}
